projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f58c5ec
)
efi_loader: guard against double inclusion of efi_loader.h
author
Heinrich Schuchardt
<
[email protected]
>
Wed, 18 Oct 2017 16:13:07 +0000
(18:13 +0200)
committer
Alexander Graf
<
[email protected]
>
Fri, 1 Dec 2017 12:22:55 +0000
(13:22 +0100)
Use a define to detect double inclusion of efi_loader.h.
Signed-off-by: Heinrich Schuchardt <
[email protected]
>
Signed-off-by: Alexander Graf <
[email protected]
>
include/efi_loader.h
patch
|
blob
|
history
diff --git
a/include/efi_loader.h
b/include/efi_loader.h
index af64b11cee89ce9935b542cb7ddcebf8365a456d..e506eeec6176efe3154861815044095c6eb88ec2 100644
(file)
--- a/
include/efi_loader.h
+++ b/
include/efi_loader.h
@@
-6,6
+6,9
@@
* SPDX-License-Identifier: GPL-2.0+
*/
+#ifndef _EFI_LOADER_H
+#define _EFI_LOADER_H 1
+
#include <common.h>
#include <part_efi.h>
#include <efi_api.h>
@@
-345,4
+348,6
@@
static inline void efi_set_bootdev(const char *dev, const char *devnr,
const char *path) { }
static inline void efi_net_set_dhcp_ack(void *pkt, int len) { }
-#endif
+#endif /* CONFIG_EFI_LOADER && !CONFIG_SPL_BUILD */
+
+#endif /* _EFI_LOADER_H */